package com.tarena.lbs.business.pojo.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tarena.lbs.base.protocol.pager.BasePageQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Setter
@Data
@EqualsAndHashCode(callSuper = false)
public class BusinessQuery extends BasePageQuery implements Serializable {
	
	@Schema(description = "商家名称", example = "美食第一店")
	private String businessName;
	
	@Schema(description = "负责人电话", example = "18654236854")
	private String businessHeadPhone;
	
	@Schema(description = "商家状态")
	private Integer businessStatus;
	
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@Schema(description = "开始时间", example = "2023-01-01 01:01:01")
	private Date startingTime;
	
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@Schema(description = "结束时间", example = "2023-01-01 01:01:01")
	private Date endTime;
	
	private Integer businessId;
	
}
